﻿<UserControl x:Class="WpfApplication2.DeploymentPropertyWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:data="http://schemas.microsoft.com/wpf/2008/toolkit" Height="680">
    <UserControl.Resources>
        <Storyboard x:Key="StartBusy" RepeatBehavior="Forever">
            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Layer_1" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)">
                <SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="0"/>
                <SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="45"/>

                <SplineDoubleKeyFrame KeyTime="00:00:00.6000000" Value="45"/>
                <SplineDoubleKeyFrame KeyTime="00:00:00.6000000" Value="90"/>

                <SplineDoubleKeyFrame KeyTime="00:00:00.9000000" Value="90"/>
                <SplineDoubleKeyFrame KeyTime="00:00:00.9000000" Value="135"/>

                <SplineDoubleKeyFrame KeyTime="00:00:01.2000000" Value="135"/>
                <SplineDoubleKeyFrame KeyTime="00:00:01.2000000" Value="180"/>

                <SplineDoubleKeyFrame KeyTime="00:00:01.5000000" Value="180"/>
                <SplineDoubleKeyFrame KeyTime="00:00:01.5000000" Value="225"/>

                <SplineDoubleKeyFrame KeyTime="00:00:01.8000000" Value="225"/>
                <SplineDoubleKeyFrame KeyTime="00:00:01.8000000" Value="270"/>

                <SplineDoubleKeyFrame KeyTime="00:00:02.1000000" Value="270"/>
                <SplineDoubleKeyFrame KeyTime="00:00:02.1000000" Value="315"/>

                <SplineDoubleKeyFrame KeyTime="00:00:02.4000000" Value="315"/>
                <SplineDoubleKeyFrame KeyTime="00:00:02.4000000" Value="0"/>

            </DoubleAnimationUsingKeyFrames>

            <Int32AnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="border2_Copy" Storyboard.TargetProperty="(Panel.ZIndex)">
                <SplineInt32KeyFrame KeyTime="00:00:00" Value="1"/>
                <SplineInt32KeyFrame KeyTime="00:00:02.4000000" Value="1"/>
            </Int32AnimationUsingKeyFrames>
        </Storyboard>

        <Storyboard x:Key="StopBusy">
            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Layer_1" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)">
                <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
            </DoubleAnimationUsingKeyFrames>

            <Int32AnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="border2_Copy" Storyboard.TargetProperty="(Panel.ZIndex)">
                <SplineInt32KeyFrame KeyTime="00:00:00" Value="0"/>
            </Int32AnimationUsingKeyFrames>
        </Storyboard>
    </UserControl.Resources>
    <Grid >
        <Grid.RowDefinitions>
            <RowDefinition Height="30" />
            <RowDefinition Height="30" />
            <RowDefinition Height="40" />
            <RowDefinition Height="30" />
            <RowDefinition Height="100" />
            <RowDefinition Height="40" />
            <RowDefinition Height="40" />
            <RowDefinition Height="40" />
            <RowDefinition Height="19" />
            <RowDefinition Height="100" />
            <RowDefinition Height="30" />
            <RowDefinition Height="30" />
            <RowDefinition Height="30" />
            <RowDefinition Height="30" />
            <RowDefinition Height="30" />
            <RowDefinition Height="30" />
            <RowDefinition Height="30" />
            <RowDefinition Height="30" />
            <RowDefinition Height="30" />
            
            
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition></ColumnDefinition>
            <ColumnDefinition Width="50"></ColumnDefinition>
            <ColumnDefinition></ColumnDefinition>
        </Grid.ColumnDefinitions>
        <TextBlock Grid.Row="1" Text="Hosted Service" HorizontalAlignment="Left" VerticalAlignment="Bottom" FontSize="15" FontWeight="Bold" Margin="5"  ></TextBlock>
        <TextBlock Grid.Row="2" Text="Production" HorizontalAlignment="Center"  VerticalAlignment="Bottom" FontSize="15" FontWeight="Bold" Margin="5"  ></TextBlock>
        <TextBlock Grid.Row="2" Grid.Column="2" Text="Staging" HorizontalAlignment="Center"  VerticalAlignment="Bottom" FontSize="15" FontWeight="Bold" Margin="5"  ></TextBlock>
        <TextBlock Grid.Row="3" x:Name="TextBoxProductionLabel" Text="" HorizontalAlignment="Center"  VerticalAlignment="Bottom"  Margin="5"  ></TextBlock>
        <TextBlock Grid.Row="3" Grid.Column="2" x:Name="TextBoxStagingLabel" Text="" HorizontalAlignment="Center"  VerticalAlignment="Bottom"  Margin="5"  ></TextBlock>
        <Image Grid.Row="4" x:Name="ImageProduction" Grid.Column="0" HorizontalAlignment="Center" VerticalAlignment="Center" Source="/WpfApplication2;component/images/DeployPic.jpg"></Image>
        <Image Grid.Row="4" x:Name="ImageStaging" Grid.Column="2" HorizontalAlignment="Center" VerticalAlignment="Center" Source="/WpfApplication2;component/images/DeployPic.jpg"></Image>

        <StackPanel Grid.Row="5" Grid.Column="0" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Center">
            <Button Visibility="Collapsed" Grid.Row="5" Width="100" Height="25" Content="Upgrade" x:Name="ProductionUpgrade" Click="ProductionUpgrade_Click" Margin="5"></Button>
            <Button Visibility="Collapsed" Grid.Row="5" Width="100" Height="25" x:Name="ButtonProductionStatus" Click="ButtonProductionStatus_Click" Content="Suspend" Margin="5"></Button>
            <Button Width="100" Height="25" x:Name="BtnProductionCreateDeploy" Visibility="Collapsed" Content="Create Deploy" Click="BtnProductionCreateDeploy_Click" Margin="5"></Button>
            <Button  Visibility="Collapsed" Grid.Row="5" Width="100" Height="25" x:Name="ButtonProductionConfigure" Content="Configure" Margin="5" Click="ButtonProductionConfigure_Click"></Button>
        </StackPanel>
        <StackPanel x:Name="StackPanelStagingButton" Grid.Row="5" Grid.Column="2" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Center">
            <Button Visibility="Collapsed" Grid.Row="5" Width="100" Height="25" Content="Upgrade" x:Name="ButtonStagingDeploy" Click="ButtonStagingDeploy_Click"  Margin="5"></Button>
            <Button Visibility="Collapsed" Grid.Row="5" Width="100" Height="25" x:Name="ButtonStagingStatus" Click="ButtonStagingStatus_Click" Content="Suspend" Margin="5"></Button>
            <Button Width="100" Height="25" x:Name="BtnStagingCreateDeploy" Visibility="Collapsed" Content="Create Deploy" Click="BtnStagingCreateDeploy_Click" Margin="5"></Button>
            <Button Visibility="Collapsed" Grid.Row="5" Width="100" Height="25" Content="Configure" Margin="5" x:Name="BtnStagingConfigure" Click="BtnStagingConfigure_Click"  ></Button>
        </StackPanel>
        
        <StackPanel Grid.Row="6" Orientation="Horizontal" VerticalAlignment="Top"  HorizontalAlignment="Center"   Grid.RowSpan="2" >
            <Button  Visibility="Collapsed" Width="100" Height="25" x:Name="BtnProductionDelete" Content="Delete" Margin="5" Click="BtnProductionDelete_Click"></Button>
            <Button  Click="ButtonRefresh_Click" x:Name="BtnProductionRefresh" Content="Refresh" Width="100" Height="25" ></Button>

        </StackPanel>
        <StackPanel Grid.Row="6" Grid.Column="2" Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Top" Grid.RowSpan="2" >
            <Button Visibility="Collapsed" Width="100" Height="25" x:Name="BtnStagingDelete" Click="BtnStagingDelete_Click" Content="Delete" Margin="5"></Button>
            <Button  Click="ButtonRefresh_Click" x:Name="BtnStagingRefresh" Content="Refresh" Width="100" Height="25" ></Button>
            
        </StackPanel>
        <StackPanel HorizontalAlignment="Left" Margin="5,0,0,0" VerticalAlignment="Center"  Grid.Row="7" Orientation="Horizontal" >
            <TextBlock Text="Status :" FontWeight="Bold"></TextBlock>
            <TextBlock  x:Name="TextBlockProductionStatus" Margin="5,0,0,0"></TextBlock>
        </StackPanel>
        <StackPanel HorizontalAlignment="Left" Margin="5,0,0,0" VerticalAlignment="Center"  Grid.Row="7" Grid.Column="2" Orientation="Horizontal" >
            <TextBlock Text="Status :" FontWeight="Bold"></TextBlock>
            <TextBlock  x:Name="TextBlockStagingStatus" Margin="5,0,0,0"></TextBlock>
        </StackPanel>
                
        <TextBlock Text="Role Instance :" HorizontalAlignment="Left" Margin="5,3.04,0,0" Grid.Row="8"  FontWeight="Bold"></TextBlock>
        
        <TextBlock Text="Role Instance :" Grid.Row="8" Grid.Column="2" HorizontalAlignment="Left" Margin="5,3.04,0,0"  FontWeight="Bold"></TextBlock>
        
        <data:DataGrid Grid.Row="9" IsReadOnly="True"  AutoGenerateColumns="False" Margin="5" x:Name="DataGridProductionRoleList" Grid.RowSpan="2">
            <data:DataGrid.Columns >
                <data:DataGridTextColumn Header="Role Name" Binding="{Binding RoleName}"></data:DataGridTextColumn>
                <data:DataGridTextColumn Header="Instance Name" Binding="{Binding InstanceName}"></data:DataGridTextColumn>
                <data:DataGridTextColumn Header="Instance State" Binding="{Binding InstanceState}"></data:DataGridTextColumn>
                
            </data:DataGrid.Columns>
        </data:DataGrid>
        <data:DataGrid Grid.Row="9" IsReadOnly="True" Margin="5" AutoGenerateColumns="False" Grid.Column="2" x:Name="DataGridStagingRoleList"  Grid.RowSpan="2">
            <data:DataGrid.Columns >
                <data:DataGridTextColumn  Header="Role Name" Binding="{Binding RoleName}"></data:DataGridTextColumn>
                <data:DataGridTextColumn  Header="Instance Name" Binding="{Binding InstanceName}"></data:DataGridTextColumn>
                <data:DataGridTextColumn  Header="Instance State" Binding="{Binding InstanceState}"></data:DataGridTextColumn>

            </data:DataGrid.Columns>
        </data:DataGrid>


        <TextBlock Grid.Row="11"  Text="Web Site URL :" HorizontalAlignment="Left"  VerticalAlignment="Bottom"  Margin="5,0,0,0" FontWeight="Bold"></TextBlock>
        <TextBlock Grid.Row="11" Grid.Column="2"  Text="Web Site URL :" HorizontalAlignment="Left"  VerticalAlignment="Bottom"  Margin="5,0,0,0" FontWeight="Bold"></TextBlock>
        <TextBlock Grid.Row="12" Margin="5,0,0,0">
            <Hyperlink RequestNavigate="HandleRequestNavigate" Name="LinkProduction">
                <TextBlock x:Name="TextBoxProductionURL" ></TextBlock>
            </Hyperlink>
        </TextBlock>
        <TextBlock Grid.Row="12" Grid.Column="2" Margin="5,0,0,0">
            <Hyperlink RequestNavigate="HandleRequestNavigate" Name="LinkStaging">
                <TextBlock x:Name="TextBoxStagingURL" ></TextBlock>
            </Hyperlink>
        </TextBlock>
        
        <Button x:Name="ButtonRefresh"  Click="ButtonRefresh_Click" Content="Refresh" Grid.Row="0" Grid.Column="0" Width="100" Height="25" HorizontalAlignment="Left" Margin="5,0,0,0"> </Button>
 
        <TextBlock Grid.Row="13"  Text="Deployment ID :" HorizontalAlignment="Left"  VerticalAlignment="Bottom"  Margin="5,0,0,0" FontWeight="Bold"></TextBlock>
        
        <TextBlock Grid.Row="13" Grid.Column="2"  Text="Deployment ID :" HorizontalAlignment="Left"  VerticalAlignment="Bottom"  Margin="5,0,0,0" FontWeight="Bold"></TextBlock>
        
        <TextBox Grid.Row="14" x:Name="TextBlockProductionID"  HorizontalAlignment="Left"  VerticalAlignment="Top"  Margin="5,3,0,0" IsReadOnly="True" ></TextBox>
        <TextBox IsReadOnly="True"  Grid.Row="14" Grid.Column="2" x:Name="TextBlockStagingID"  HorizontalAlignment="Left"  VerticalAlignment="Top"  Margin="5,3,0,0" ></TextBox>

        <TextBlock Grid.Row="15"  Text="Deployment Name :" HorizontalAlignment="Left"  VerticalAlignment="Bottom"  Margin="5,0,0,0" FontWeight="Bold"></TextBlock>

        <TextBlock Grid.Row="15" Grid.Column="2"  Text="Deployment Name :" HorizontalAlignment="Left"  VerticalAlignment="Bottom"  Margin="5,0,0,0" FontWeight="Bold"></TextBlock>
        <TextBox IsReadOnly="True" Grid.Row="16" x:Name="TextBlockProductionDeploymentName"  HorizontalAlignment="Left"  VerticalAlignment="Top"  Margin="5,3,0,0" ></TextBox>
        <TextBox IsReadOnly="True" Grid.Row="16" Grid.Column="2" x:Name="TextBlockStagingDeploymentName"  HorizontalAlignment="Left"  VerticalAlignment="Top"  Margin="5,3,0,0" ></TextBox>






        <Button Content="Swap" x:Name="ButtonSwap" Click="ButtonSwap_Click" Grid.Row="4" Grid.Column="1" Width="50" 
                Height="50" Visibility="Collapsed"></Button>

        <Border BorderThickness="1,1,5,5" BorderBrush="{x:Null}" CornerRadius="5,5,5,5" x:Name="border2_Copy"
                RenderTransformOrigin="0.5,0.5" Opacity="0.5" Background="#FFFFFFFF" Margin="0,0,0,23" Panel.ZIndex="0" Grid.RowSpan="19" Grid.ColumnSpan="3">
            <Border.RenderTransform>
                <TransformGroup>
                    <ScaleTransform ScaleX="1" ScaleY="1"/>
                    <SkewTransform AngleX="0" AngleY="0"/>
                    <RotateTransform Angle="0"/>
                    <TranslateTransform X="0" Y="0"/>
                </TransformGroup>
            </Border.RenderTransform>
            <Canvas x:Name="Layer_1" Width="157" Height="157" Canvas.Left="0" Canvas.Top="0" HorizontalAlignment="Center" VerticalAlignment="Center" RenderTransformOrigin="0.5,0.5" Opacity="0.995">
                <Canvas.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform ScaleX="1" ScaleY="1"/>
                        <SkewTransform AngleX="0" AngleY="0"/>
                        <RotateTransform Angle="0"/>
                        <TranslateTransform X="0" Y="0"/>
                    </TransformGroup>
                </Canvas.RenderTransform>
                <Canvas Width="156.165" Height="156.167">
                    <Path x:Name="Path" Width="16.6243" Height="62.2988" Canvas.Left="69.6029" Canvas.Top="1.52588e-005" Stretch="Fill" Fill="#FF60C3FE" Data="F1 M 86.2271,31.4012C 86.2271,18.4445 82.8743,6.98193 77.7339,1.52588e-005C 72.7987,7.02213 69.6029,18.2478 69.6029,30.8977C 69.6029,43.8544 72.9556,55.3169 78.0961,62.2988C 83.0313,55.2767 86.2271,44.0511 86.2271,31.4012 Z "/>
                    <Path x:Name="Path_0" Width="43.7936" Height="44.3102" Canvas.Left="89.253" Canvas.Top="22.6206" Stretch="Fill" Fill="#FF4ABBFF" Data="F1 M 116.85,50.831C 126.011,41.6687 131.745,31.1925 133.047,22.6206C 124.592,24.0967 114.394,29.7751 105.45,38.7204C 96.2887,47.8826 90.5548,58.3589 89.253,66.9308C 97.7081,65.4547 107.905,59.7763 116.85,50.831 Z "/>
                    <Path x:Name="Path_1" Width="62.298" Height="16.6255" Canvas.Left="93.8675" Canvas.Top="69.5108" Stretch="Fill" Fill="#FF33B2FE" Data="F1 M 124.781,86.1362C 137.738,86.1108 149.194,82.7356 156.165,77.5816C 149.134,72.6601 137.902,69.4862 125.252,69.511C 112.295,69.5364 100.839,72.9116 93.8675,78.0657C 100.899,82.9871 112.131,86.161 124.781,86.1362 Z "/>
                    <Path x:Name="Path_2" Width="44.3958" Height="43.7068" Canvas.Left="89.2574" Canvas.Top="89.2317" Stretch="Fill" Fill="#FF00A0FF" Data="F1 M 105.411,116.797C 114.591,125.94 125.079,131.654 133.653,132.938C 132.161,124.486 126.462,114.3 117.499,105.373C 108.319,96.23 97.8317,90.5166 89.2574,89.2317C 90.75,97.6838 96.4484,107.87 105.411,116.797 Z "/>
                    <Path x:Name="Path_3" Width="16.6234" Height="62.2996" Canvas.Left="69.8085" Canvas.Top="93.8679" Stretch="Fill" Fill="#FFD5EFFF" Data="F1 M 69.8088,124.743C 69.7727,137.699 73.0935,149.171 78.2145,156.167C 83.1692,149.159 86.3963,137.942 86.4316,125.293C 86.4676,112.336 83.1468,100.864 78.0258,93.8679C 73.0711,100.876 69.844,112.093 69.8088,124.743 Z "/>
                    <Path x:Name="Path_4" Width="43.9168" Height="44.1881" Canvas.Left="22.9649" Canvas.Top="89.2049" Stretch="Fill" Fill="#FFB8E4FF" Data="F1 M 39.2404,105.228C 30.0536,114.365 24.2905,124.825 22.9649,133.393C 31.424,131.94 41.6371,126.29 50.6063,117.37C 59.7931,108.233 65.5562,97.7731 66.8818,89.2049C 58.4227,90.6575 48.2096,96.3075 39.2404,105.228 Z "/>
                    <Path x:Name="Path_5" Width="62.2993" Height="16.626" Canvas.Left="7.7486e-007" Canvas.Top="69.4623" Stretch="Fill" Fill="#FF98D8FF" Data="F1 M 31.4857,69.4662C 18.5296,69.3348 7.0337,72.5711 7.7486e-007,77.6404C 6.97171,82.6466 18.1644,85.9562 30.8136,86.0845C 43.7697,86.2159 55.2656,82.9795 62.2993,77.9102C 55.3276,72.904 44.1349,69.5945 31.4857,69.4662 Z "/>
                    <Path x:Name="Path_6" Width="43.8637" Height="44.2408" Canvas.Left="23.1804" Canvas.Top="22.5599" Stretch="Fill" Fill="#FF7ACDFF" Data="F1 M 51.2251,39.0422C 42.1562,29.7884 31.7387,23.9485 23.1804,22.5599C 24.5707,31.0295 30.1454,41.2838 38.9995,50.3185C 48.0684,59.5723 58.486,65.4122 67.0442,66.8007C 65.6539,58.3312 60.0792,48.0768 51.2251,39.0422 Z "/>
                </Canvas>
            </Canvas>
        </Border>


    </Grid>
</UserControl>
